package com.ruoyi.erp.domain;

import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.convert.ExcelDictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 商品扩展对象 base_inventory_detail
 *
 * @author chenyun
 * @date 2022-03-13
 */
@Data
@ExcelIgnoreUnannotated
@TableName("base_inventory_detail")
public class InventoryDetail extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @ExcelProperty(value = "编号")
    private Long id;

    /** 商品编号 */
    @ExcelProperty(value = "商品编号")
    private Long invId;

    /** 条码 */
    @ExcelProperty(value = "条码")
    private String barCode;

    /** 单位 */
    @ExcelProperty(value = "单位")
    private String unitCode;

    /** 多属性 */
    @ExcelProperty(value = "多属性")
    private String sku;

    /** 采购价 */
    @ExcelProperty(value = "采购价")
    private BigDecimal phPrice;

    /** 销售价 */
    @ExcelProperty(value = "销售价")
    private BigDecimal saPrice;

    /** 零售价 */
    @ExcelProperty(value = "零售价")
    private BigDecimal retailPrice;

    /** 标准成本 */
    @ExcelProperty(value = "标准成本")
    private BigDecimal normalCost;

    /** 最新成本 */
    @ExcelProperty(value = "最新成本")
    private BigDecimal newCost;

    /** 采购价上限 */
    @ExcelProperty(value = "采购价上限")
    private BigDecimal phLimitPrice;

    /** 销售价下限 */
    @ExcelProperty(value = "销售价下限")
    private BigDecimal saLimitPrice;

    /** 安全库存数 */
    @ExcelProperty(value = "安全库存数")
    private Long safeNum;

    /** 库存上限 */
    @ExcelProperty(value = "库存上限")
    private Long maxNum;

    /** 库存下限 */
    @ExcelProperty(value = "库存下限")
    private Long minNum;

    /** 机构id */
    @ExcelProperty(value = "机构id")
    private Long orgId;

    /** 状态（0正常 1停用） */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 备注 */
    @ExcelProperty(value = "备注")
    private String remark;

}
